<%@page import="com.java0312.service.AdminService"%>
<%@ page import="com.java0312.dao.impl.AdminDaoImpl" %>
<%@ page import="com.java0312.dao.AdminDao" %>
<%@ page import="com.java0312.pojo.Admin" %>
<%@ page import="com.java0312.service.impl.AdminServiceImpl" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<% 
String uid=request.getParameter("username");
String pwd=request.getParameter("password");
AdminService service=new AdminServiceImpl();
Admin admin=new Admin();
admin.setUsername(uid);
admin.setPassword(pwd);
boolean result=service.login(admin);
if(result)
{
	out.print("login ok");
}
else
{
	out.print("login no ok");
}
%>
</body>
</html>